package user;

import book.BookList;
import opera.IOPeration;

public abstract class User {//抽象类
    protected String name;
    protected IOPeration[] ioPerations;

    public User(String name) {//构造方法
        this.name = name;
    }
    public abstract int menu();//抽象方法

    public void doWork(int choice, BookList bookList) {
        //对象的work方法
        this.ioPerations[choice].work(bookList);
    }
}
